#ifndef CONFIGUREMODEL_H
#define CONFIGUREMODEL_H

#include "model/singletonbd.h"

class ConfigureModel
{
public:
    static ConfigureModel *getInstance();

    /**
     * @brief InsertConfigure   插入配置信息
     * @param videoPath         视频路径
     * @param imagePath         图片路径
     * @param spaceSize         空间大小
     * @param name              设备编号
     * @return
     */
    int InsertConfigure(QString videoPath, QString imagePath, double spaceSize, QString name);

    /**
     * @brief selectLastConfigure   查询配置表中最最新的数据
     * @return
     */
    int selectLastConfigure(char **&qres, int &row, int  &col);

    int selectLastVideoPath(char **&qres, int &row, int &col);

    int selectLastImagePath(char **&qres, int &row, int &col);
private:
    ConfigureModel();
    static ConfigureModel *instance;
};

#endif // CONFIGUREMODEL_H
